// pages/echart/echart.js
const CHARTS = require('../../utils/wxcharts.js');
Page({
	data: {
		pieData:[
			{ name: '公司日常管理', data: 15},
			{ name: '公司日常管理空缺', data: 5},
			{ name: '合同管理', data: 35},
			{ name: '合同管理空缺', data: 20},
			{ name: '劳动人事管理', data: 58},
			{ name: '劳动人事管理空缺', data: 26},
			{ name: '知识产权', data: 68},
			{ name: '知识产权空缺', data: 25}
		]
	},
	onLoad: function (options) {
		this.__chartsPie()
	},
	__chartsPie() {
		new CHARTS({
			animation: true, //是否有动画
			canvasId: 'lineCanvas',
			type: 'pie',
			title: {
				name:"评分报告"
			},
			series: this.data.pieData,
			width: 360,
			height: 400,
			dataLabel: true,
			disablePieStroke: true//不绘制饼图（圆环图）各区块的白色分割线
		 })
	}
})